package com.volvo.caretrack.mobile.feed.impl;

import org.apache.commons.lang.StringUtils;

import com.volvo.caretrack.mobile.exception.AuthException;
import com.volvo.caretrack.mobile.feed.IAuthenticationDesk;
import com.volvo.caretrack.mobile.model.auth.Session;

public class DummyAuthenticationDesk implements IAuthenticationDesk {

	@Override
	public Session login(String user, String password) throws AuthException {
		if (StringUtils.isEmpty(user) || StringUtils.isEmpty(password)) 
			throw new AuthException("Illegle login input");
		Session dummySession = new Session("f0de76da-5085-4dc4-9a61-b92d48b1c701");
		return dummySession;
	}

	@Override
	public void logout(Session session) {
		//do nothing;
	}
}
